package com.zhentao.service.impl;

import com.zhentao.mapper.BuCategoryMapper;
import com.zhentao.model.common.buiness.pojo.Category;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.BuCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BuCategoryServiceImpl implements BuCategoryService {
    @Autowired
    private BuCategoryMapper buCategoryMapper;
    @Override
    public ResponseResult categoryList() {
        List<Category> categories = buCategoryMapper.selectList(null);
        return ResponseResult.okResult(categories);
    }
}
